{if condition="$field['type'] == 'hidden'"}
    <input type="hidden" name="{$field.field}" value="{$field.value}" />
{elseif condition="$field['type'] == 'custom'"/}
    {include file="ebcms@common/field/custom"/}
{else /}
    <tr>
        <th>{$field.title}</th>
        <td>
            {switch name="field.type"}

                {case value="bool"}
                    {include file="ebcms@common/field/bool"/}
                {/case}
                
                {case value="select"}
                    {include file="ebcms@common/field/select"/}
                {/case}

                {case value="radio"}
                    {include file="ebcms@common/field/radio"/}
                {/case}

                {case value="checkbox"}
                    {include file="ebcms@common/field/checkbox"/}
                {/case}

                {case value="textbox"}
                    {include file="ebcms@common/field/textbox"/}
                {/case}

                {case value="multitextbox"}
                    {include file="ebcms@common/field/multitextbox"/}
                {/case}

                {case value="upload"}
                    {include file="ebcms@common/field/upload"/}
                {/case}

                {case value="uploads"}
                    {include file="ebcms@common/field/uploads"/}
                {/case}

                {case value="ueditor"}
                    {include file="ebcms@common/field/ueditor"/}
                {/case}

                {case value="database"}
                    {include file="ebcms@common/field/database"/}
                {/case}

                {case value="datadict"}
                    {include file="ebcms@common/field/datadict"/}
                {/case}

                {case value="numberbox"}
                    {include file="ebcms@common/field/numberbox"/}
                {/case}

                {default /}
                    <span style="color:red;">{$field.type}表单类型不存在 请联系专业人员</span>
            {/switch}

            {notempty name='field.remark'}
                <p class="help-block">{$field.remark}</p>
            {/notempty}
        </td>
    </tr>
{/if}